package a66weding.com.jiehuntong.application;

/**
 * 这个类是用来获取用户信息的
 * Created by Administrator on 2016/7/12.
 */
public class GetUserInfo {
    private String nickName;    //昵称
    private String realName;    //姓名
    static volatile GetUserInfo defaultInstance;

    // 使用getDefault让用户不用自己去实例化
    public static GetUserInfo getDefault() {
        if (defaultInstance == null) {
            synchronized (GetUserInfo.class) {
                if (defaultInstance == null) {
                    defaultInstance = new GetUserInfo();
                }
            }
        }
        return defaultInstance;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }
}
